// index.js
// 获取应用实例
const app = getApp()

import { createStoreBindings } from 'mobx-miniprogram-bindings'
import {store} from '../../store/store'

Page({
  data: {
   isNav:1
  },
  // 事件处理函数
  onLoad() {
    this.storeBindings=createStoreBindings(this,{
      store,
      fields:['isNavToTrade'],
      actions:['updateNum1']
    })
  },
  onUnLoad(){
    this.storeBindings.destroyStoreBindings()
  }
})
